package com.idelan.commonMessage.model;

import javax.validation.constraints.NotBlank;

/**
* @Description:    java类作用描述
* @Author:         jzhou
* @CreateDate:     2018\7\19 0019 9:14
* @UpdateUser:     jzhou
* @UpdateDate:     2018\7\19 0019 9:14
* @UpdateRemark:   修改内容
* @Version:        1.0
*/
public class RabbitmqSenderParameter {
    @NotBlank(message = "消息的队列名不能为空！")
    private String queueName;
    @NotBlank(message = "消息不能为空！")
    private String message;
    @NotBlank(message = "发送消息的主机地址不能为空！")
    private String host;
    @NotBlank(message = "发送消息的端口号不能为空！")
    private Integer port;
    @NotBlank(message = "发送用户不能为空！")
    private String userName;
    @NotBlank(message = "用户密码不能为空")
    private String password;

    @Override
    public String toString() {
        return "RabbitmqSenderParameter{" +
                "queueName='" + queueName + '\'' +
                ", message='" + message + '\'' +
                ", host='" + host + '\'' +
                ", port=" + port +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    public String getQueueName() {
        return queueName;
    }

    public void setQueueName(String queueName) {
        this.queueName = queueName;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
